package com.springcloud.controller;

import com.springcloud.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/feign")
@RestController
public class FeignController {

    @Autowired
    private FeignService feignService ;

    @RequestMapping(value = "/home",method = RequestMethod.GET)
    public String sayHi(@RequestParam String name){
        return feignService.feignHome(name) ;
    }

}
